<template>
  <TbTitle level="2" title="（三）内部管理情况" />
  <table border="0" class="m-table">
    <tr>
      <td class="td-head" style="width: 10%">机构管理</td>
      <td colspan="5">是否建立分支(代表)机构管理制度</td>
      <td colspan="8">
        <span>{{ yesNoBool(detailInfo.institutionalManagementRegime) }}</span>
      </td>
    </tr>
    <tr>
      <td class="td-head" rowspan="2">证书印章</td>
      <td colspan="5">是否有法人证书保管、使用制度</td>
      <td colspan="2">
        <span>{{ yesNoBool(detailInfo.legalCertificateRegime) }}</span>
      </td>
      <td colspan="2">保管在</td>
      <td colspan="3">
        <span>{{ detailInfo.legalCertificateRegimeDeposit }}</span>
      </td>
    </tr>
    <tr>
      <td colspan="5">是否有印章保管、使用制度</td>
      <td colspan="2">
        <span>{{ detailInfo.sealRegime == 1 ? '是' : '否' }}</span>
      </td>
      <td colspan="2">保管在</td>
      <td colspan="3">
        <span>{{ detailInfo.sealRegimeDeposit }}</span>
      </td>
    </tr>
    <tr>
      <td class="td-head">档案管理</td>
      <td colspan="5">档案管理制度</td>
      <td colspan="2">
        <span>{{ hasOrNot[detailInfo.archivesRegime] }}</span>
      </td>
      <td colspan="2">保管在</td>
      <td colspan="3">
        <span>{{ detailInfo.archivesRegimeDeposit }}</span>
      </td>
    </tr>
    <tr>
      <td class="td-head" rowspan="4">人力资源</td>
      <td colspan="5">人事管理制度</td>
      <td colspan="2">
        <span>{{ hasOrNot[detailInfo.personnelRegime] }}</span>
      </td>
      <td colspan="2">签订劳动合同人数</td>
      <td colspan="3">
        <span>{{ detailInfo.laborContractCount }}</span>
      </td>
    </tr>
    <tr>
      <td colspan="5">薪酬管理制度</td>
      <td colspan="2">
        <span>{{ hasOrNot[detailInfo.salaryRegime] }}</span>
      </td>
      <td colspan="2">考核制度</td>
      <td colspan="3">
        <span>{{ hasOrNot[detailInfo.checkRegime] }}</span>
      </td>
    </tr>
    <tr>
      <td colspan="5">奖惩制度</td>
      <td colspan="2">
        <span>{{ hasOrNot[detailInfo.rewardPunishmentRegime] }}</span>
      </td>
      <td colspan="2">业务培训制度</td>
      <td colspan="3">
        <span>{{ hasOrNot[detailInfo.businessTrainingRegime] }}</span>
      </td>
    </tr>
    <tr>
      <td colspan="5">参加社会保险人数</td>
      <td colspan="1">
        失业保险
        <span>{{ detailInfo.unemploymentInsuranceNum }}</span>
        人
      </td>
      <td colspan="1">
        养老保险
        <span>{{ detailInfo.endowmentInsuranceNum }}</span>
        人
      </td>
      <td colspan="1">
        医疗保险
        <span>{{ detailInfo.medicalInsuranceNum }}</span>
        人
      </td>
      <td colspan="2">
        工伤保险
        <span>{{ detailInfo.industrialInjuryInsuranceNum }}</span>
        人
      </td>
      <td colspan="2">
        生育保险
        <span>{{ detailInfo.maternityInjuryInsuranceNum }}</span>
        人
      </td>
    </tr>
    <tr>
      <td class="td-head" rowspan="16">财务管理</td>
      <td rowspan="6" colspan="3">银行账户</td>
      <td colspan="3">人民币开户银行</td>
      <td colspan="6">
        <span>{{ detailInfo.openingBank }}</span>
      </td>
    </tr>
    <tr>
      <td colspan="3">开户名称</td>
      <td colspan="6">
        <span>{{ detailInfo.accountName }}</span>
      </td>
    </tr>
    <tr>
      <td colspan="3">账号</td>
      <td colspan="6">
        <span>{{ detailInfo.accountNum }}</span>
      </td>
    </tr>
    <tr>
      <td colspan="3">外币开户银行</td>
      <td colspan="6">
        <span>{{ detailInfo.openingBankFc }}</span>
      </td>
    </tr>
    <tr>
      <td colspan="3">开户名称</td>
      <td colspan="6">
        <span>{{ detailInfo.accountNameFc }}</span>
      </td>
    </tr>
    <tr>
      <td colspan="3">账号</td>
      <td colspan="6">
        <span>{{ detailInfo.accountNumFc }}</span>
      </td>
    </tr>
    <tr>
      <td colspan="5">财务核算是否独立</td>
      <td colspan="2">
        <span>{{detailInfo.financeIndependent == 1?'是':'无'}}</span>
      </td>
      <td colspan="2">税务登记</td>
      <td colspan="3"><span>{{detailInfo.taxRegistration == 1?'已登记':'未登记'}}</span></td>
    </tr>
    <tr>
      <td colspan="5">专职财会人员数</td>
      <td colspan="2">
        <span>{{ detailInfo.fullTimeAccountingCount }}</span>
      </td>
      <td colspan="2">其中具有从业资格人数</td>
      <td colspan="3">
        <span>{{ detailInfo.fullTimeAccountingQualificationCount }}</span>
      </td>
    </tr>
    <tr>
      <td colspan="5">财务管理制度</td>
      <td colspan="2">
        <span>{{detailInfo.financeRegime == 1?'有':'无'}}</span>
      </td>
      <td colspan="2">固定资产管理制度</td>
      <td colspan="3">
        <span>{{detailInfo.fixedAssetsRegime == 1?'有':'无'}}</span>
      </td>
    </tr>
    <tr>
      <td colspan="5">执行会计制度</td>
      <td colspan="8">
        <span>
          {{ dictToVal(dict1, detailInfo.implementAccountingRegime) }}
        </span>
      </td>
    </tr>
    <tr>
      <td rowspan="6" colspan="3">使用票据</td>
      <td colspan="3">票据类型</td>
      <td colspan="6">发放机关</td>
    </tr>
    <tr>
      <td colspan="3"><span>会费票据</span></td>
      <td colspan="6">
        <span>{{ detailInfo.membershipFeeReceiptsIssuingAuthority }}</span>
      </td>
    </tr>
    <tr>
      <td colspan="3"><span>捐赠票据</span></td>
      <td colspan="6">
        <span>{{ detailInfo.donationReceiptsIssuingAuthority }}</span>
      </td>
    </tr>
    <tr>
      <td colspan="3"><span>税务发票</span></td>
      <td colspan="6">
        <span>{{ detailInfo.taxationReceiptsIssuingAuthority }}</span>
      </td>
    </tr>
    <tr>
      <td colspan="3"><span>行政事业性收费票据</span></td>
      <td colspan="6">
        <span>{{ detailInfo.administrativeInstitutionalAuthority }}</span>
      </td>
    </tr>
    <tr>
      <td colspan="3"><span>其他</span></td>
      <td colspan="6">
        <span>{{ detailInfo.otherReceiptsAuthority }}</span>
      </td>
    </tr>
    <tr>
      <td class="td-head" rowspan="7">
        工作人员 (含专职负责人以及分支机构、代表机构人员）
      </td>
      <td colspan="3">类别/项目</td>
      <td>总人数</td>
      <td>平均年龄</td>
      <td>其中:女性人数</td>
      <td>中共党员人数</td>
      <td>志愿者人数</td>
      <td>累计志愿时间（小时）</td>
      <td>{{ detailInfo.examineYear }}年度平均薪酬（万元/年）</td>
      <td>{{ detailInfo.examineYear }}年度最低薪酬（万元/年）</td>
      <td>{{ detailInfo.examineYear }}年度最高薪酬（万元/年）</td>
    </tr>
    <tr>
      <td colspan="3">全体工作人员</td>
      <td>
        <span>{{ detailInfo.staffCount }}</span>
      </td>
      <td>
        <span>{{ detailInfo.staffAgeSalary }}</span>
      </td>
      <td>
        <span>{{ detailInfo.staffWomanCount }}</span>
      </td>
      <td>
        <span>{{ detailInfo.partyMemberCount }}</span>
      </td>
      <td>
        <span>{{ detailInfo.volunteerCount }}</span>
      </td>
      <td>
        <span>{{ detailInfo.volunteerTimeCount }}</span>
      </td>
      <td>
        <span>{{ detailInfo.avgSalary }}</span>
      </td>
      <td>
        <span>{{ detailInfo.minSalary }}</span>
      </td>
      <td>
        <span>{{ detailInfo.maxSalary }}</span>
      </td>
    </tr>
    <tr>
      <td colspan="3">专职工作人员</td>
      <td>
        <span>{{ detailInfo.fullTimeCount }}</span>
      </td>
      <td>
        <span>{{ detailInfo.fullTimeAgeSalary }}</span>
      </td>
      <td>
        <span>{{ detailInfo.fullTimeWomanCount }}</span>
      </td>
      <td>
        <span>{{ detailInfo.fullTimePartyMemberCount }}</span>
      </td>
      <td>
        <span>{{ detailInfo.fullTimeVolunteerCount }}</span>
      </td>
      <td>
        <span>{{ detailInfo.fullTimeVolunteerTimeCount }}</span>
      </td>
      <td>
        <span>{{ detailInfo.fullTimeAvgSalary }}</span>
      </td>
      <td>
        <span>{{ detailInfo.fullTimeMinSalary }}</span>
      </td>
      <td>
        <span>{{ detailInfo.fullTimeMaxSalary }}</span>
      </td>
    </tr>
    <tr>
      <td rowspan="2" colspan="3">类别/项目</td>
      <td colspan="2">受教育程度</td>
      <td colspan="2">职业资格水平</td>
      <td colspan="5">年龄结构</td>
    </tr>
    <tr>
      <td>大学专科人数</td>
      <td>大学本科及以上人数</td>
      <td>助理社会工作师人数</td>
      <td>社会工作师人数</td>
      <td>35岁及以下人数</td>
      <td>36岁至45岁人数</td>
      <td>46岁至55岁人数</td>
      <td colspan="2">56岁及以上人数</td>
    </tr>
    <tr>
      <td colspan="3">全体工作人员</td>
      <td>
        <span>{{ detailInfo.collegeDiplomaCount }}</span>
      </td>
      <td>
        <span>{{ detailInfo.undergraduateDegreeCount }}</span>
      </td>
      <td>
        <span>{{ detailInfo.assistantSocialWorkerCount }}</span>
      </td>
      <td>
        <span>{{ detailInfo.socialWorkerCount }}</span>
      </td>
      <td>
        <span>{{ detailInfo.ageHirtyFiveCount }}</span>
      </td>
      <td>
        <span>{{ detailInfo.ageHirtySixCount }}</span>
      </td>
      <td>
        <span>{{ detailInfo.ageFortySixCount }}</span>
      </td>
      <td colspan="2">
        <span>{{ detailInfo.ageFiftySixCount }}</span>
      </td>
    </tr>
    <tr>
      <td colspan="3">专职工作人员</td>
      <td>
        <span>{{ detailInfo.fullTimeCollegeDiplomaCount }}</span>
      </td>
      <td>
        <span>{{ detailInfo.fullTimeUndergraduateDegreeCount }}</span>
      </td>
      <td>
        <span>{{ detailInfo.fullTimeAssistantSocialWorkerCount }}</span>
      </td>
      <td>
        <span>{{ detailInfo.fullTimeSocialWorkerCount }}</span>
      </td>
      <td>
        <span>{{ detailInfo.fullTimeAgeHirtyFiveCount }}</span>
      </td>
      <td>
        <span>{{ detailInfo.fullTimeAgeHirtySixCount }}</span>
      </td>
      <td>
        <span>{{ detailInfo.fullTimeAgeFortySixCount }}</span>
      </td>
      <td colspan="2">
        <span>{{ detailInfo.fullTimeAgeFiftySixCount }}</span>
      </td>
    </tr>
  </table>
  <div class="msg-tip">
    <p>
      注：实体机构是指社会组织因自身业务活动和与其宗旨相适应的需要，举办的事业性实体、经济实体(可以投资设立企业法人，也可以设立非法人的经营机构)或者民办非企业单位。
    </p>
  </div>
</template>

<script setup lang="ts">
import TbTitle from '@/views/yearCheck/components/TbTitle.vue'
import { ref, reactive, inject, getCurrentInstance } from 'vue'
const { getDetailInfo } = inject('getDetailInfo')

import { getDictAccounting } from '@/api/dict/index'

const { proxy } = getCurrentInstance();
const yesNoBool = proxy.$yesNoBool
const dictToVal = proxy.$dictToVal
const dict1 = ref([])

let getDictInfo = () => {
  //执行会计制度
  getDictAccounting().then(res => {
    dict1.value = res.data
  })
  //住所来源
}
getDictInfo()

let detailInfo = reactive({})
let hasOrNot = ref(['否','有', '无'])
getDetailInfo().then(res => {
  Object.assign(detailInfo, res.data)
})
</script>
<style lang="scss" scoped>
.msg-tip {
  padding: 20px 0;
  color: #000;

  font-family: '微软雅黑';
}
</style>
